<%--
  Created by IntelliJ IDEA.
  User: 苏清涂
  Date: 2021/6/19
  Time: 9:57
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"  %>
<html>
<head>
    <title>Title</title>
</head>
<body>
    <h1>门禁卡管理系统</h1>
    <button>办卡</button>
    <table>
        <tr align="center" style="background-color: #B7B8B9">
            <th>持卡人姓名</th>
            <th>持卡人身份证号</th>
            <th>启用状态</th>
            <th>办卡日期</th>
            <th>操作</th>
        </tr>
        <c:forEach items="${list}" var="a" varStatus="status">
            <tr style="background-color: ${status.list % 2 == 0?":'#D8D8DB'"}">
                <td>${a.userName}</td>
                <td>${a.idNumber}</td>
                <td>${a.status == 1?"启用":"禁用"}</td>
                <td>${a.createDate}</td>
                <td><a href="javascript:void(0);"
                    onclick="modify(${a.status},${a.id})">${a.status ==0?"启用":"禁用"}</a>
                </td>
            </tr>
        </c:forEach>
    </table>
    <script src="js/jquery-1.12.4.js"></script>
</body>
</html>
